import request from '@/utils/request'

// 查询退单详情列表
export function listBackbody(query) {
  return request({
    url: '/store/backbody/list',
    method: 'get',
    params: query
  })
}

// 查询退单详情详细
export function getBackbody(backBodyId) {
  return request({
    url: '/store/backbody/' + backBodyId,
    method: 'get'
  })
}

// 新增退单详情
export function addBackbody(data) {
  return request({
    url: '/store/backbody',
    method: 'post',
    data: data
  })
}

// 修改退单详情
export function updateBackbody(data) {
  return request({
    url: '/store/backbody',
    method: 'put',
    data: data
  })
}

// 删除退单详情
export function delBackbody(backBodyId) {
  return request({
    url: '/store/backbody/' + backBodyId,
    method: 'delete'
  })
}
